@import "const.less" ;

.form .form-body {
	padding: 20px 0 20px 0;
}

/**
    form-md-line-input 
*/
.form-group.form-md-line-input {
    position: relative;
    margin: 0 0 35px 0;
    padding-top: 10px;

    .form-control {
        background: none;
        border: 0;
        border-bottom: 1px solid @control-border-bottom-color;
        -webkit-border-radius: 0;
        -moz-border-radius: 0;
        -ms-border-radius: 0;
        -o-border-radius: 0;
        border-radius: 0;
        color: @fontColor;
        box-shadow: none;
        padding-left: 0;
        padding-right: 0;
        font-size: 14px; 

        ~ label,~ .form-control-focus {
            width: 100%;
            position: absolute;
            left: 0;
            bottom: 0;
            pointer-events: none; 
        }
        ~ label {
            top: 0;
            margin-bottom: 0;
            font-size: 14px;
            color: @fontColor-control;
            opacity: 1 ;
            filter: alpha(opacity=100) ; 
        }
        ~ label:after,~ .form-control-focus:after{
            content: '';
            position: absolute;
            z-index: 5;
            bottom: 0;
            left: 50%;
            width: 0;
            height: 2px;
            width: 0;
            visibility: hidden;
            transition: 0.2s ease all;
        }
        ~ .help-block-error {
            opacity: 1 ;
            filter: alpha(opacity=100) ; 
        }
    }
    .form-control::-moz-placeholder {
        color: @fontcolor-placeholder;
        opacity: 1; 
    }
    .form-control:-ms-input-placeholder,
    .form-control::-webkit-input-placeholder {
        color: @fontcolor-placeholder; 
    }
    .form-control.form-control-static {
        border-bottom: 0; 
    }
    .form-control.input-sm {
        font-size: 14px;
        padding: 6px 0;
    }
    .form-control.input-lg {
        font-size: 20px;
        padding: 14px 0; 
    }
    .form-control[readonly]{
        background: none;
        cursor: pointer;
    }
    .form-control[disabled]{
        background: none;
        cursor: not-allowed;
        border-bottom: 1px dashed @control-border-bottom-color;
    }

    .form-control.ng-touched.ng-invalid {
        border-bottom-color: @control-border-bottom-invalidColor;
    }
    .form-control.ng-touched.ng-invalid.edited:not([readonly]) ~ label:after {
        background-color: @control-border-bottom-invalidColor;
    }
    .form-control.edited:not([readonly]) {
        ~ label,~ .form-control-focus{
            color: @fontColor-control;
        }
        ~ label:after,~ .form-control-focus:after{
            visibility: visible;
            left: 0;
            width: 100%;
            background: @control-border-bottom-focusColor;
        }
        ~ label{
            opacity: 1 ;
            filter: alpha(opacity=100) ;
        }
        ~ .help-block{      
            color: @control-border-bottom-focusColor;
            opacity: 1 ;
            filter: alpha(opacity=100) ;
        }
        ~ .help-block-error{
            opacity: 0 ;
            filter: alpha(opacity=0) ;
        }
    }
    .form-control:focus:not([readonly]){
        ~ label,~ .form-control-focus{
            color: @fontColor-control;
        }
        ~ label:after,~ .form-control-focus:after{
            visibility: visible;
            left: 0;
            width: 100%;
            background: @control-border-bottom-focusColor;
        }
        ~ label{
            opacity: 1 ;
            filter: alpha(opacity=100) ;
        }
        ~ .help-block{      
            color: @control-border-bottom-focusColor;
            opacity: 1 ;
            filter: alpha(opacity=100) ;
        }
        ~ .help-block-error{
            opacity: 0 ;
            filter: alpha(opacity=0) ;
        }
    }
    .form-control.edited:not([readonly]):not(:focus){
        ~ .help-block,~ .help-block-error{
            opacity: 0 ;
            filter: alpha(opacity=0) ;
        }
    }

    + .input-icon {
        padding-top: 0; 
     }
    > .input-icon > i {
        left: 0;
        bottom: 0;
        margin: 9px 2px 10px 10px;
        color: @fontColor-control; 
     }
     
    > .input-icon.input-icon-lg > i {
        top: 6px;
    }
    > .input-icon.input-icon-sm > i {
        top: -1px; 
    }
    > .input-icon .form-control {
        padding-left: 34px;
    }
    > .input-icon > label {
        margin-top: -20px; 
    }
    > .input-icon.right .form-control {
        padding-left: 0;
        padding-right: 34px; 
    }
    > .input-icon.right > i {
        left: auto;
        right: 8px;
        margin: 11px 2px 10px 10px; 
    }
    + .input-group {
        padding-top: 0; 
    }
    .input-group {
        padding-top: 0;

        > label {
            margin-top: -20px; 
        }
        .input-group-addon {
            -webkit-border-radius: 0;
            -moz-border-radius: 0;
            -ms-border-radius: 0;
            -o-border-radius: 0;
            border-radius: 0;
            background: none;
            border: 0;
            border-bottom: 1px solid @control-border-bottom-color; 
        }
        + .input-group-control {
            padding-top: 0; 
        }
        .input-group-control {
            padding-top: 0;
            position: relative;
            display: table-cell;
            vertical-align: bottom;
            
            > label {
                margin-top: -20px; 
            } 
        }

        .input-group-btn .btn {
            -webkit-border-radius: 2px;
            -moz-border-radius: 2px;
            -ms-border-radius: 2px;
            -o-border-radius: 2px;
            border-radius: 2px; 
        }
        .input-group-btn.btn-left .btn {
            margin-right: 10px; 
        }
        .input-group-btn.btn-right .btn {
            margin-left: 10px; 
        }
        .help-block {
            margin-top: 35px; 
        }
    }

    .input-group.input-group-sm .help-block {
        margin-top: 30px; 
    }
    .input-group.input-group-lg .help-block {
        margin-top: 47px; 
    }
    .help-block {
        position: absolute;
        margin: 2px 0 0 0;
        opacity: 0 ;
        filter: alpha(opacity=0) ;
        font-size: 13px; 
     }
}
fieldset[disabled] .form-group.form-md-line-input .form-control{
    background: none;
    cursor: not-allowed;
    border-bottom: 1px dashed @control-border-bottom-color;
}
.form-horizontal .form-group.form-md-line-input {
    padding-top: 10px;
    margin-bottom: 20px;
    margin: 0 -15px 20px -15px;

    > label {
        padding-top: 5px;
        font-size: 14px;
        color: @fontColor-control;
        opacity: 1 ;
        filter: alpha(opacity=100) ; 
    }
    .form-control{
        ~ label,~ .form-control-focus{
            width: auto;
            left: 15px;
            right: 15px;
        }
    }
    
    .input-icon .form-control {
        padding-left: 33px; 
    }
    .input-icon > i {
        top: 0; 
    }
    .input-icon.right .form-control {
        padding-left: 0;
        padding-right: 33px; 
    }
    .input-icon > .form-control-focus {
        left: 0 !important;
        right: 0 !important;
    }

    .input-group {
        padding-top: 0;
    }
    .input-group > .input-group-btn .btn {
        margin-bottom: 0 !important;
    }
    .input-group > .input-group-control {
        padding-top: 0;
    }
    .input-group > .input-group-control > .form-control-focus {
        left: 0 !important;
        right: 0 !important; 
    }
    .input-group > .form-control-focus {
        left: 0 !important;
        right: 0 !important; 
    }
}
.form-inline .form-md-line-input {
    margin: 0;
    padding-top: 0;
    margin-right: 20px;

    > .input-icon {
        padding: 0; 
    } 
}

.form-group.form-md-line-input.no-hint {
    margin-bottom: 15px;
}
.form-group.form-md-line-input.has-error{
    .form-control {
        border-bottom-color: @control-border-bottom-invalidColor;
    }
    .help-block-info {
        display: none;
    }
}



/*form-md-floating-label*/
.form-group.form-md-line-input.form-md-floating-label{
    .form-control ~ label {
        font-size: 16px;
        top: 25px;
        transition: 0.2s ease all;
        color: @fontcolor-placeholder; 
    }
    .form-control[readonly] ~ label,
    .form-control.edited ~ label,
    .form-control.form-control-static ~ label,
    .form-control:focus:not([readonly]) ~ label,
    .form-control.focus:not([readonly]) ~ label {
        top: 0;
        font-size: 13px;
    }
    .form-control.input-sm ~ label {
        font-size: 14px;
        top: 24px; 
    }
    .form-control.input-sm[readonly] ~ label,
    .form-control.input-sm.form-control-static ~ label,
    .form-control.input-sm.edited ~ label,
    .form-control.input-sm:focus:not([readonly]) ~ label,
    .form-control.input-sm.focus:not([readonly]) ~ label {
        top: 0;
        font-size: 13px;
    }
    .form-control.input-lg ~ label {
        font-size: 20px;
        top: 30px;
    }
    .form-control.input-lg[readonly] ~ label,
    .form-control.input-lg.edited ~ label, 
    .form-control.input-lg.form-control-static ~ label,
    .form-control.input-lg:focus:not([readonly]) ~ label, 
    .form-control.input-lg.focus:not([readonly]) ~ label {
        top: 0;
        font-size: 13px;
    }
    .input-icon > label {
        padding-left: 34px; 
    }
    .input-icon.right > label {
        padding-left: 0;
        padding-right: 34px; 
    }
    .input-group.left-addon label {
        padding-left: 34px; 
    }
    .input-group.right-addon label {
        padding-right: 34px; 
    }
} 

/**
    md-checkbox
*/
.md-checkbox{
    position: relative;

    input[type=checkbox] {
        visibility: hidden;
        position: absolute; 
    }
    label{
        cursor: pointer;
        padding-left: 30px; 

        > span {
            display: block;
            position: absolute;
            left: 0;
            -webkit-transition-duration: 0.3s;
            -moz-transition-duration: 0.3s;
            transition-duration: 0.3s; 
        }
        > span.inc {
            background: #fff;
            left: -10px;
            top: -10px;
            height: 40px;
            width: 40px;
            opacity: 0;
            border-radius: 50% !important;
            -moz-border-radius: 50% !important;
            -webkit-border-radius: 50% !important; 
        }
        > .box {
            top: 0px;
            border: 2px solid #666;
            height: 20px;
            width: 20px;
            z-index: 5;
            -webkit-transition-delay: 0.2s;
            -moz-transition-delay: 0.2s;
            transition-delay: 0.2s; 
        }
        > .check {
            top: -4px;
            left: 6px;
            width: 10px;
            height: 20px;
            border: 2px solid @control-border-bottom-focusColor;
            border-top: none;
            border-left: none;
            opacity: 0;
            z-index: 5;
            -webkit-transform: rotate(180deg);
            -moz-transform: rotate(180deg);
            transform: rotate(180deg);
            -webkit-transition-delay: 0.3s;
            -moz-transition-delay: 0.3s;
            transition-delay: 0.3s; 
        }
        > span.inc {
            -webkit-animation: growCircle 0.3s ease;
            -moz-animation: growCircle 0.3s ease;
            animation: growCircle 0.3s ease;
        }
    }

    input[type=checkbox]:checked ~ label > .box {
        opacity: 0;
        -webkit-transform: scale(0) rotate(-180deg);
        -moz-transform: scale(0) rotate(-180deg);
        transform: scale(0) rotate(-180deg);
    }
    input[type=checkbox]:checked ~ label > .check {
        opacity: 1;
        -webkit-transform: scale(1) rotate(45deg);
        -moz-transform: scale(1) rotate(45deg);
        transform: scale(1) rotate(45deg); 
    }
    input[type=checkbox]:disabled ~ label,
    input[type=checkbox][disabled] ~ label {
        cursor: not-allowed;
        opacity: 0.7 ;
        filter: alpha(opacity=70) ; 
    }
    input[type=checkbox]:disabled ~ label > .box,
    input[type=checkbox][disabled] ~ label > .box {
        cursor: not-allowed;
        opacity: 0.7 ;
        filter: alpha(opacity=70) ; 
    }
    input[type=checkbox]:disabled:checked ~ label > .check,
    input[type=checkbox][disabled]:checked ~ label > .check {
        cursor: not-allowed;
        opacity: 0.7 ;
        filter: alpha(opacity=70) ;
    }
}
.md-checkbox.md-checkbox-inline {
    display: inline-block; 
}
.form-inline .md-checkbox.md-checkbox-inline {
    margin-right: 20px;
    top: 3px; 
}

.form-md-checkboxes {
    padding-top: 5px;
    
    > label {
        font-size: 14px;
        color: @fontColor-control;
        opacity: 1 ;
        filter: alpha(opacity=100) ;
    }
}

.md-checkbox-list {
    margin: 5px 0 5px 0; 
    
    .md-checkbox {
        display: block;
        margin-bottom: 10px;
    }
    .md-checkbox:last-child {
        margin-bottom: 0; 
    }
}
.form-horizontal .md-checkbox-list {
    margin-top: 5px; 
}
.md-checkbox-inline {
    margin: 5px 0 5px 0;
     
    .md-checkbox {
        display: inline-block;
        margin-right: 20px;
    }
    .md-checkbox:last-child {
        margin-right: 0; 
    }
}
.form-horizontal .md-checkbox-inline {
    margin-top: 7px; 
}

/* bubble animation */
@-webkit-keyframes growCircle {
  0%,
  100% {
    -webkit-transform: scale(0);
    opacity: 1;
  }
  70% {
    background: #eee;
    -webkit-transform: scale(1.25);
  }
}
@-moz-keyframes growCircle {
  0%,
  100% {
    -moz-transform: scale(0);
    opacity: 1;
  }
  70% {
    background: #eee;
    -moz-transform: scale(1.25);
  }
}
@keyframes growCircle {
  0%,
  100% {
    transform: scale(0);
    opacity: 1;
  }
  70% {
    background: #eee;
    transform: scale(1.25);
  }
}

/**
    md-radio
*/
.md-radio {
    position: relative;
    
    input[type=radio] {
        visibility: hidden;
        position: absolute; 
    }
    label {
        cursor: pointer;
        padding-left: 30px;

        > span {
            display: block;
            position: absolute;
            left: 0;
            -webkit-transition-duration: 0.3s;
            -moz-transition-duration: 0.3s;
            transition-duration: 0.3s; 
        }
        > span.inc {
            background: #fff;
            left: -20px;
            top: -20px;
            height: 60px;
            width: 60px;
            opacity: 0;
            border-radius: 50% !important;
            -moz-border-radius: 50% !important;
            -webkit-border-radius: 50% !important;
        }
        > .box {
            top: 0px;
            border: 2px solid #666;
            height: 20px;
            width: 20px;
            border-radius: 50% !important;
            -moz-border-radius: 50% !important;
            -webkit-border-radius: 50% !important;
            z-index: 5; 
        }
        > .check {
            top: 5px;
            left: 5px;
            width: 10px;
            height: 10px;
            background: @control-border-bottom-focusColor;
            opacity: 0;
            z-index: 6;
            border-radius: 50% !important;
            -moz-border-radius: 50% !important;
            -webkit-border-radius: 50% !important;
            -webkit-transform: scale(0);
            -moz-transform: scale(0);
            transform: scale(0); 
        }
        > span.inc {
            -webkit-animation: growCircleRadio 0.3s ease;
            -moz-animation: growCircleRadio 0.3s ease;
            animation: growCircleRadio 0.3s ease; 
        }
    }

    input[type=radio]:checked ~ label > .check {
        opacity: 1;
        -webkit-transform: scale(1);
        -moz-transform: scale(1);
        transform: scale(1); 
    }
    input[type=radio]:disabled ~ label,
    input[type=radio][disabled] ~ label {
        cursor: not-allowed;
        opacity: 0.7 ;
        filter: alpha(opacity=70) ; 
    }
    input[type=radio]:disabled ~ label > .box,
    input[type=radio][disabled] ~ label > .box {
        cursor: not-allowed;
        opacity: 0.7 ;
        filter: alpha(opacity=70) ; 
    }
    input[type=radio]:disabled:checked ~ label > .check,
    input[type=radio][disabled]:checked ~ label > .check {
        cursor: not-allowed;
        opacity: 0.7 ;
        filter: alpha(opacity=70) ; 
    }
}
.form-md-radios {
    padding-top: 5px; 

    > label {
        font-size: 14px;
        color: @fontColor-control;
        opacity: 1 ;
        filter: alpha(opacity=100) ; 
    }
}

.md-radio-list {
    margin: 5px 0 5px 0; 

    .md-radio {
        display: block;
        margin-bottom: 10px; 
    }
}
.form-horizontal .md-radio-list {
    margin-top: 5px; 
}

.md-radio-inline {
    margin: 5px 0 5px 0;

    .md-radio {
        display: inline-block;
        margin-right: 20px; 
    }
    .md-radio:last-child {
        margin-right: 0; 
    }
}
.form-horizontal .md-radio-inline {
    margin-top: 7px; 
}

.suveryAnswer{
    height:35px;
    line-height:35px;
    input{
        height:35px;
    }
}

/* bubble animation */
@-webkit-keyframes growCircleRadio {
  0%,
  100% {
    -webkit-transform: scale(0);
    opacity: 1;
  }
  70% {
    background: #eee;
    -webkit-transform: scale(1.25);
  }
}
@-moz-keyframes growCircleRadio {
  0%,
  100% {
    -moz-transform: scale(0);
    opacity: 1;
  }
  70% {
    background: #eee;
    -moz-transform: scale(1.25);
  }
}
@keyframes growCircleRadio {
  0%,
  100% {
    transform: scale(0);
    opacity: 1;
  }
  70% {
    background: #eee;
    transform: scale(1.25);
  }
}

/*formValidation*/
.formValidation-form-md-line-input(@state,@c){
    .form-group.form-md-line-input.has-@{state}{
        .form-control {
            border-bottom: 1px solid @c; 
        }
        .form-control.edited:not([readonly]) ~ label:after,
        .form-control.edited:not([readonly]) ~ .form-control-focus:after, 
        .form-control.form-control-static ~ label:after,
        .form-control.form-control-static ~ .form-control-focus:after, 
        .form-control:focus:not([readonly]) ~ label:after,
        .form-control:focus:not([readonly]) ~ .form-control-focus:after, 
        .form-control.focus:not([readonly]) ~ label:after,
        .form-control.focus:not([readonly]) ~ .form-control-focus:after {
            background: @c;
        }
        .form-control.edited:not([readonly]) ~ label, 
        .form-control.form-control-static ~ label,
        .form-control:focus:not([readonly]) ~ label,
        .form-control.focus:not([readonly]) ~ label {
            color: @c;
        }
        .form-control.edited:not([readonly]) ~ i, 
        .form-control.form-control-static ~ i, 
        .form-control:focus:not([readonly]) ~ i,
        .form-control.focus:not([readonly]) ~ i {
            color: @c; 
        }
        .form-control.edited:not([readonly]) ~ .help-block, 
        .form-control.form-control-static ~ .help-block, 
        .form-control:focus:not([readonly]) ~ .help-block, 
        .form-control.focus:not([readonly]) ~ .help-block {
            color: @c; 
        }
        .input-group-addon {
            color: @c;
            border-bottom: 1px solid @c; 
        }
        label {
            color: @c; 
        }
    }

    /*md-checkbox*/
    .has-@{state} .md-checkbox label,
    .has-@{state}.md-checkbox label {
        color: @c; 
    }

    .has-@{state} .md-checkbox label > .box,
    .has-@{state}.md-checkbox label > .box {
        border-color: @c;
    }

    .has-@{state} .md-checkbox label > .check,
    .has-@{state}.md-checkbox label > .check {
        border-color: @c; 
    }
    /*md-radio*/
    .has-@{state} .md-radio label,
    .has-@{state}.md-radio label {
        color: @c; 
    }

    .has-@{state} .md-radio label > .box,
    .has-@{state}.md-radio label > .box {
        border-color: @c; 
    }

    .has-@{state} .md-radio label > .check,
    .has-@{state}.md-radio label > .check {
        background: @c; 
    }
}
.formValidation-form-md-line-input(success,@success-color);
.formValidation-form-md-line-input(warning,@warning-color);
.formValidation-form-md-line-input(error,@error-color);
.formValidation-form-md-line-input(info,@info-color);

.formValidation-form-md-line-input-label(@state,@c){
    .form-md-checkboxes.has-@{state} label {
        color: @c; 
    }
    .form-md-radios.has-@{state} label {
        color: @c; 
    }
}
.formValidation-form-md-line-input-label(success,@success-color2);
.formValidation-form-md-line-input-label(warning,@warning-color2);
.formValidation-form-md-line-input-label(error,@error-color2);
.formValidation-form-md-line-input-label(info,@info-color2);

.input-ltr, input[type="email"],input[type="url"],input[type="number"],input[type="tel"]{
    direction:ltr;
}

/*字体颜色*/
.font-color(@str,@c){
    .font-@{str} {
        color: @c !important;
    }
}

.font-color(green,@green);
.font-color(yellow,@yellow);
.font-color(blue,@blue);
.font-color(gray,@gray);
.font-color(inActive,@inActive);


/* Custom buttons */
.btn.btn-xs2 {
    font-size: 11px;
    padding: 2px 8px 2px 8px;
}
/* Circle Buttons */
.btn-circle {
  border-radius: 25px !important;
  overflow: hidden; 
}

.btn-circle-right {
  border-radius: 0 25px 25px 0 !important; 
}

.btn-circle-left {
  border-radius: 25px 0 0 25px !important; 
}

.btn-circle-bottom {
  border-radius: 0 0 25px 25px !important; 
}

.btn-circle-top {
  border-radius: 25px 25px 0 0 !important;
}
.btn > i {
    margin-top: 0;
    margin-left: 3px;
    margin-right: 3px;
}

/* Custom Color buttons */
.btn-custom-color(
@style-name,@font-color,
@color-bg,@color-border,
@color-bg-focus,@color-border-focus,
@color-bg-active,@color-border-active,
@color-bg-active-focus,@color-border-active-focus){
    .btn.@{style-name}:not(.btn-outline) {
        color: @font-color;
        background-color: @color-bg;
        border-color: @color-border;
    }
    .btn.@{style-name}:not(.btn-outline):focus, 
    .btn.@{style-name}:not(.btn-outline).focus {
        color: @font-color;
        background-color: @color-bg-focus;
        border-color: @color-border-focus; 
    }
    .btn.@{style-name}:not(.btn-outline):hover {
        color: @font-color;
        background-color: @color-bg-active;
        border-color:@color-border-active; 
    }
    .btn.@{style-name}:not(.btn-outline):active,
    .btn.@{style-name}:not(.btn-outline).active,
    .open > .btn.@{style-name}:not(.btn-outline).dropdown-toggle {
        color: @font-color;
        background-color: @color-bg-active;
        border-color:@color-border-active; 
    }
    .btn.@{style-name}:not(.btn-outline):active:hover, 
    .btn.@{style-name}:not(.btn-outline):active:focus, 
    .btn.@{style-name}:not(.btn-outline):active.focus, 
    .btn.@{style-name}:not(.btn-outline).active:hover, 
    .btn.@{style-name}:not(.btn-outline).active:focus, 
    .btn.@{style-name}:not(.btn-outline).active.focus,
    .open > .btn.@{style-name}:not(.btn-outline).dropdown-toggle:hover,
    .open > .btn.@{style-name}:not(.btn-outline).dropdown-toggle:focus,
    .open > .btn.@{style-name}:not(.btn-outline).dropdown-toggle.focus {
      color: @font-color;
      background-color: @color-bg-active-focus;
      border-color: @color-border-active-focus; 
    }
    .btn.@{style-name}:not(.btn-outline):active,
    .btn.@{style-name}:not(.btn-outline).active,
    .open > .btn.@{style-name}:not(.btn-outline).dropdown-toggle {
        background-image: none;
    }
    .btn.@{style-name}:not(.btn-outline).disabled:hover, 
    .btn.@{style-name}:not(.btn-outline).disabled:focus, 
    .btn.@{style-name}:not(.btn-outline).disabled.focus, 
    .btn.@{style-name}:not(.btn-outline)[disabled]:hover,
    .btn.@{style-name}:not(.btn-outline)[disabled]:focus, 
    .btn.@{style-name}:not(.btn-outline)[disabled].focus,
    fieldset[disabled] .btn.@{style-name}:not(.btn-outline):hover,
    fieldset[disabled] .btn.@{style-name}:not(.btn-outline):focus,
    fieldset[disabled] .btn.@{style-name}:not(.btn-outline).focus {
        background-color: @color-bg;
        border-color: @color-border; 
    }
    .btn.@{style-name}:not(.btn-outline) .badge {
        color: @color-border;
        background-color: @font-color; 
    }

    .btn.btn-outline.@{style-name} {
        border-color: @color-border;
        color:@color-border;
        background: none; 
    }
    .btn.btn-outline.@{style-name}:hover, 
    .btn.btn-outline.@{style-name}:active, 
    .btn.btn-outline.@{style-name}:active:hover, 
    .btn.btn-outline.@{style-name}:active:focus, 
    .btn.btn-outline.@{style-name}:focus, 
    .btn.btn-outline.@{style-name}.active {
        border-color: @color-border;
        color: @font-color;
        background-color: @color-bg; 
    }

    .btn.@{style-name}-stripe {
        border-left: 4px solid @color-border !important; 
    }

    .btn.@{style-name}.btn-no-border:not(.active) {
        border-color: transparent; 
    }
}

.btn-custom-color(blue,#fff,#3699ff,#3699ff,#217ebd,#15527c,#217ebd,#1f78b5,#1c699f,#15527c);
.btn-custom-color(blue-light,#fff,#269bff,#269bff, #3f74a3,#2a4d6c, #3f74a3,#3c6f9c, #356289,#2a4d6c);
.btn-custom-color(blue-steel,#fff,#4B77BE,#4B77BE, #395f9d,#243d65, #395f9d,#365b96, #2f4f83,#243d65);
.btn-custom-color(blue-dark,#fff,#5e738b,#5e738b, #495a6d,#2b343f, #495a6d,#455566, #3b4857,#2b343f);
.btn-custom-color(green-jungle,#fff,#26C281,#26C281, #1e9765,#11573a, #1e9765,#1c8f5f, #187a51,#11573a);
.btn-custom-color(yellow-soft,#FFFFFF,#c8d046,#c8d046, #adb52e,#73781e, #adb52e,#a5ad2c, #929927,#73781e);
.btn-custom-color(purple-medium,#FFFFFF,#BF55EC,#BF55EC, #ae27e7,#8013ae, #ae27e7,#aa1ee6, #9b18d3,#8013ae);

/*input 右侧的文字图标*/
.input-icon {
    position: relative;
    left: 0;

     > i {
        color: #ccc;
        display: block;
        position: absolute;
        margin: 11px 2px 4px 10px;
        z-index: 3;
        width: 16px;
        font-size: 16px;
        text-align: center;
        left: 0;
    }
}
.input-icon.right {
    left: auto;
    right: 0;

    > i {
        left: auto;
        right: 8px;
        float: right;
    }
}
.input-icon.input-icon-sm > i {
    margin-top: 8px;
    font-size: 13px;
}

.marginHalf{
    margin: 0.5rem;
    margin-left: 0;
}
/*添加margin*/
.newMargin(@c,@d) {
    .margin-bottom-@{c} {
        margin-bottom: @d !important;
    }

    .margin-top-@{c} {
        margin-top: @d !important;
    }

    .margin-left-@{c} {
        margin-left: @d !important;
    }

    .margin-right-@{c} {
        margin-right: @d !important;
    }
}

.newMargin(0,0px);
.newMargin(5,5px);
.newMargin(10,10px);
.newMargin(15,15px);
.newMargin(20,20px);
.newMargin(25,25px);


.checkbox-list {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}


.p-button.p-fileupload-choose {
    position: relative;
    overflow: hidden;
}

.p-button.p-fileupload-choose input[type=file] {
    display: none;
}

.p-fileupload-choose.p-fileupload-choose-selected input[type=file] {
    display: none;
}

.p-button {
    width: auto;
}

